package com.nbjtjc.safe.api.edu;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.nbjtjc.safe.bean.Result;
import com.nbjtjc.safe.model.edu.EduPlanTemplet;
import com.nbjtjc.safe.service.edu.EduPlanTempletService;

@RestController
@CrossOrigin("*")
@RequestMapping("/eduPlanTemplet")
public class EduPlanTempletController {
	@Autowired
	private EduPlanTempletService eduPlanTempletService;
	
	
	  @RequestMapping(value = "/find", method = {RequestMethod.POST})
	  public Result find(@RequestBody EduPlanTemplet eduPlanTemplet) {
	        Result result = new Result();
	        try {
	            result = eduPlanTempletService.find(eduPlanTemplet);
	        } catch (Exception e) {
	            e.printStackTrace();
	            result.setFalse(e.getMessage());
	        }
	        return result;
	    }
}
